package sctu.edu.java.year2016.team08.zengshenjing.day20160611.chapter11_3;

/**
 * Created by Administrator on 2016/6/11.
 * 创建一个Conputer类，计算两个数的最大公约数，如果输入负整数就抛出自定义异常
 */

    public class Client {
        public static void main(String [] arge){
            Computer computer=new Computer();
            try{
                computer.GetGcd(3, 6);
                computer.GetGcd(-3, 6);
            }catch(Exception e){
                System.out.println("不能输入负整数");
            }

        }

    }

